#ifndef CONTROLLER_H
#define CONTROLLER_H


class Controller
{
public:
    Controller();

    //Control for the SMT32
    int SetLightPar(QString iVl, QString iPulse, QString iInt, QString iSpeed);
    int LightShock();
    int StartLight();
    int StopLight();
    int CheckLight();

    //Control for 2 GPIO sensor and one canliu
    int CanLiuIo();
    int StartIo();
    int StopIo();

    //Control for LED and BUZZER
    int ErrorIo();
    int NormalIo();

    //Control for power IO
    int PowerIo();

    //Control for motor
    int SpeedMotor(int iSpeed);
    int StartMotor();
    int StopMotor();

    //Control for Rudong
    int StartRuDong();
    int StopRuDong();

    //Control for door
    int OpenDoor();
    int CloseDoor();

    //Control for yaodong
    int OpenYao();
    int CloseYao();
};

#endif // CONTROLLER_H
